package com.jeesite.modules.exam.quota.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 考核任务指标汇总表-牵头评分单位Entity
 * @author xhc
 * @version 2022-05-30
 */
@Table(name="dc_sup_exam_sum_quota_org", alias="a", label="考核任务指标汇总表-牵头评分单位信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="sum_quota_id", attrName="sumQuotaId", label="指标汇总表id"),
		@Column(name="grade_org", attrName="gradeOrg", label="牵头评分单位", comment="牵头评分单位（单个）"),
		@Column(name="grade_org_name", attrName="gradeOrgName", label="牵头评分单位名称", comment="牵头评分单位名称（单个）", queryType=QueryType.LIKE),
	}, orderBy="a.id DESC"
)
public class DcSupExamSumQuotaOrg extends DataEntity<DcSupExamSumQuotaOrg> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 指标汇总表id
	 */
	private String sumQuotaId;
	 /**
	 * 牵头评分单位（单个）
	 */
	private String gradeOrg;
	 /**
	 * 牵头评分单位名称（单个）
	 */
	private String gradeOrgName;
	
	public DcSupExamSumQuotaOrg() {
		this(null);
	}

	public DcSupExamSumQuotaOrg(String id){
		super(id);
	}
	
	@Size(min=0, max=64, message="指标汇总表id长度不能超过 64 个字符")
	public String getSumQuotaId() {
		return sumQuotaId;
	}

	public void setSumQuotaId(String sumQuotaId) {
		this.sumQuotaId = sumQuotaId;
	}
	
	@Size(min=0, max=100, message="牵头评分单位长度不能超过 100 个字符")
	public String getGradeOrg() {
		return gradeOrg;
	}

	public void setGradeOrg(String gradeOrg) {
		this.gradeOrg = gradeOrg;
	}
	
	@Size(min=0, max=100, message="牵头评分单位名称长度不能超过 100 个字符")
	public String getGradeOrgName() {
		return gradeOrgName;
	}

	public void setGradeOrgName(String gradeOrgName) {
		this.gradeOrgName = gradeOrgName;
	}
	
}